package com.gjy.design.bridge.factory;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-10 09:30:46
 */
public abstract class DocumentService {

    private final DataPersist persist;

    public DocumentService(DataPersist persist) {
        this.persist = persist;
    }

    public void save(String content) {
        persist.persist(content);
        test();
    }

    public abstract void test();

}
